/*****************************************************************************************
   
   Copyright (c) Microsoft Corporation. All rights reserved.

   Use of this code sample is subject to the terms of the Microsoft
   Permissive License, a copy of which should always be distributed with
   this file.  You can also access a copy of this license agreement at:
   http://www.microsoft.com/resources/sharedsource/licensingbasics/permissivelicense.mspx

 ****************************************************************************************/

using System;

namespace GrooveWebServicesV12Helpers.Forms
{
	/// <summary>
	/// Represents information about a column in a View in a FormsTool.
	/// </summary>
	public class Column
	{
		private GrooveWebServicesV12Helpers.Forms.View m_View;
		
		private GrooveFormsWebService.ViewColumn m_ViewColumn;

		public Column(GrooveWebServicesV12Helpers.Forms.View i_View, GrooveFormsWebService.ViewColumn i_ViewColumn)
		{
			m_View = i_View;
			m_ViewColumn = i_ViewColumn;
		}


		/// <summary>
		/// The View which contains this Column.
		/// </summary>
		public GrooveWebServicesV12Helpers.Forms.View View
		{
			get
			{
				return m_View;
			}
		}

		/// <summary>
		/// The name of the column.
		/// </summary>
		public string Name
		{
			get
			{
				return m_ViewColumn.Name;
			}
		}

		/// <summary>
		/// The heading displayed at the top of the column.
		/// </summary>
		public string HeaderText
		{
			get
			{
				return m_ViewColumn.HeaderText;
			}
		}
	}
}
